import router from "@/router/router.js";

import { createApp } from 'vue'
import App from './App.vue'

import 'element-plus/dist/index.css';
import ElementPlus from 'element-plus';
import * as Icons from '@element-plus/icons-vue' // 引入所有图标，并命名为 Icons

import '@/assets/base.scss'
import '@/assets/icon/iconfont.css'

import VueCookies from 'vue-cookies'

const app = createApp(App);

app.config.globalProperties.VueCookies = VueCookies;

app.use(router)
app.use(ElementPlus);
// 通过遍历的方式注册所有 svg组件，会牺牲一点点性能
for (let i in Icons) {
    app.component(i, Icons[i])
}
app.mount('#app')
